<%@ page language="java" pageEncoding="utf-8"%>
<%@ page language="java" import="java.util.*"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
var isGrade = <s:property value="isGrade"/>;
var isLogin = <s:if test="#session['username']==null">false</s:if><s:else>true</s:else>;
var grade = <s:property value="grade"/>;
</script>
<div class="box">
<div class="content">
<s:hidden name="itemID" id="id_itemID"></s:hidden>
	<h2><s:text name="_DocInfo"/></h2>
<div id="docInfo">
    <p id="rateContainer" class="rate">
    	<span id="rateScore" class="score"><s:property value="grade"/></span>
   		<span id="rateStar" class="star-list">
   		
			<span grade="1" class="icon grade
				<s:if test="grade>=1">star-big-on</s:if>
				<s:if test="grade>0&&grade<1">star-big-half</s:if>
				<s:if test="grade<=0">star-big-off</s:if>
			"></span>
			<span grade="2" class="icon grade
				<s:if test="grade>=2">star-big-on</s:if>
				<s:if test="grade>1&&grade<2">star-big-half</s:if>
				<s:if test="grade<=1">star-big-off</s:if>
			"></span>
			<span grade="3" class="icon grade
				<s:if test="grade>=3">star-big-on</s:if>
				<s:if test="grade>2&&grade<3">star-big-half</s:if>
				<s:if test="grade<=2">star-big-off</s:if>
			"></span>
			<span grade="4" class="icon grade
				<s:if test="grade>=4">star-big-on</s:if>
				<s:if test="grade>3&&grade<4">star-big-half</s:if>
				<s:if test="grade<=3">star-big-off</s:if>
			"></span>
			<span grade="5" class="icon grade
				<s:if test="grade>=5">star-big-on</s:if>
				<s:if test="grade>4&&grade<5">star-big-half</s:if>
				<s:if test="grade<=4">star-big-off</s:if>
			"></span>
		</span>
		<span id="rateTip" class="rate-tip"><s:if test="#session.username == null"><s:text name="_DocLogin"/></s:if></span>
				    
    </p>     		
     <p><s:text name="_DocYi"/><span id="rateCount"><s:property value="gradeNum" /></span><s:text name="_DocEva"/></p>
          		
          		
          		<p class="view"><s:text name="_Views"/><s:property value="item.viewNum"/><s:text name="_Times"/>
          			<span><s:text name="_Downloads"/><s:property value="item.downNum"/><s:text name="_Times"/></span>
          		</p>
          		
					<p><s:text name="_UploadedIn"/><s:date name="uploadInfo.date" format="yyyy-MM-dd HH:mm:ss"/></p>
				
          		<p><s:text name="_UploadedBy"/><s:property value="uploadInfo.userinfo.username"/></p>
          		
</div>
</div>
</div>